
/*
 * final_movement.h
 *
 * Created: 12/4/2013 2:45:43 PM
 *  Author: Daniel Keith
 */ 
#include "open_interface.h"

extern oi_t *sensor_data;

//Moves the robot forward
//Move the robot forward a desired distance in millimeters
// @param travel is the desired distance in millimeters 
void forward(int travel);
	
//turns the robot any desired degree to the right
//@param degree is the number of degree it will turn to the right
void right_turn(signed degree);


//turns the robot any desired degree to the left
//@param degree is the number of degree it will turn to the left
void left_turn(signed degree);
	
//Moves the robot backwards 
//Moves the robot backwards a desired distance in millimeters
//@param travel is the desired distance in millimeters 
void backward(int travel);
	
//check all sensor for problems
//checks if the robot's cliff and bumper sensors are active and return one if they are active and stops the robot.
//returns 1 if there is an error
int Final_movement(void);
	

